package com.pt5.pthouduan.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 用户好友关系列表
 * </p>
 *
 * @author ljx
 * @since 2025-04-14
 */
@TableName("friends_list")
public class FriendsList implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "relation_id", type = IdType.AUTO)
    private Long relationId;

    private Long userid;

    private Long friendId;

    private LocalDateTime requestTime;

    private String type;

    private String rightLevel;

    public Long getRelationId() {
        return relationId;
    }

    public void setRelationId(Long relationId) {
        this.relationId = relationId;
    }

    public Long getUserid() {
        return userid;
    }

    public void setUserid(Long userid) {
        this.userid = userid;
    }

    public Long getFriendId() {
        return friendId;
    }

    public void setFriendId(Long friendId) {
        this.friendId = friendId;
    }

    public LocalDateTime getRequestTime() {
        return requestTime;
    }

    public void setRequestTime(LocalDateTime requestTime) {
        this.requestTime = requestTime;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getRightLevel() {
        return rightLevel;
    }

    public void setRightLevel(String rightLevel) {
        this.rightLevel = rightLevel;
    }

    @Override
    public String toString() {
        return "FriendsList{" +
        "relationId = " + relationId +
        ", userid = " + userid +
        ", friendId = " + friendId +
        ", requestTime = " + requestTime +
        ", type = " + type +
        ", rightLevel = " + rightLevel +
        "}";
    }
}
